home *** CD-ROM | disk | FTP | other *** search
- <head>
- <title>Web-gallery for [[FolderName]]</title>
- <script>
- var old_img= new Image();
- var pagecount=Math.floor([[ImagesCount]]/[[ImagesPerPage]]);
- var curpagefile='';
- if ( ([[ImagesCount]]/[[ImagesPerPage]])>pagecount ) { pagecount++; }
-
- var startborder=([[PageNumber]]-1)*[[ImagesPerPage]]+1;
- var endborder=[[PageNumber]]*[[ImagesPerPage]];
-
-
- function sel_image(img,fn,wd,ht)
- {
- old_img.border=0;
- img.border=3;
- old_img=img;
- var im = new Image();
- im.src=img;
- var s='';
- s='width='+wd+',height='+ht+',resizable=yes,titlebar=no,fullscreen=no';
- k=fn;
- while (k.indexOf('.',0)>=0)
- {
- k=k.replace('.','_');
- }
- while (k.indexOf(' ',0)>=0)
- {
- k=k.replace(' ','_');
- }
- while (k.indexOf('-',0)>=0)
- {
- k=k.replace('-','_');
- }
- popup=window.open('',k,s);
- popup.innerHeight=0;
- popup.document.open();
- popup.document.write('<head><title>'+fn+'</title></head><body leftmargin=0 topmargin=0 bgcolor=silver><table height=100% width=100%><tr valign=center><td>');
- popup.document.write('<center><img alt="Click to close window" style="cursor: hand" src='+im.src+' onClick="javascript:window.close()">');
- popup.document.write('</td></tr></table></body>');
- popup.focus();
- }
-
- function DrawTabs()
- {
- if (pagecount>1) {
- for (i=0;i<pagecount;i++)
- { curpagefile='[[PageFileName]]';
-
- if (i>0) {curpagefile=curpagefile.replace('.',''+i+'.');}
-
- startborder=i*[[ImagesPerPage]]+1;
- endborder=(i+1)*[[ImagesPerPage]];
-
- if (endborder>[[ImagesCount]]) {endborder=[[ImagesCount]];}
-
- if ((i+1)==[[PageNumber]])
- {document.writeln('<font color=black>['+startborder+'-'+endborder+']</font>' );}
- else
- {document.writeln('<a href='+curpagefile+'><font color=silver>['+startborder+'-'+endborder+']</font></a>');}
- }
- }
- }
-
- </script>
- </head>
- <body>
- <center>
- <table cellspacing=1 width=680>
- <tr colspan=5><td colspan=5>
- <table bgcolor=EDEDED width=100% height=100%>
- <tr align=center><td width=100%><font face='Tahoma' color=black size=2><b>[[FolderName]]</b></font>
- <font face='Tahoma' color=gray size=2>[
- <script>
-
- document.writeln('[[ImagesCount]] images');
- </script>
- ]</font></td></tr>
- </table>
- </td></tr>
-
- <tr><td colspan=2>
- <table bgcolor=EDEDED width=100% height=100%>
- <tr align=center><td width=100%>
- <font face='Tahoma' color=silver size=2><a><font color=silver></font></a>
- <script>
- DrawTabs();
- </script>
- </font>
- </td></tr>
- </table></td></tr>
-
- [[RecordInfo]]
- <tr align=center height=103>[[01]]
- <td>
- <table bgcolor=EDEDED width=100% height=100% cellpadding=5>
- <tr align=center>
- <td width=110 >
- <img style="cursor: hand" border=0 src="[[IconFilePath]]" name="[[SampleFilePath]]" onClick="sel_image(this.name,'[[FileName]]',[[SampleWidth]],[[SampleHeight]])">
- </td>
- <td valign=top align=left width=200 bgcolor=FDFDFD>
- <font face=Tahoma size=2><b>
- <script>
- if ('[[Subject]]'=='')
- {document.writeln('<font color=silver>No subject</font>');}
- else {document.writeln('[[Subject]]');}
- </script>
- </b></font><br>
- <font face=Tahoma color=gray size=1>[[DateTime]]</font><br><br>
- <font face=Tahoma size=2>[[Comment]]</font>
- </td>
- </tr>
- </table>
- </td>
- [[/01]][[02]]
- <td>
- <table bgcolor=EDEDED width=100% height=100% cellpadding=5>
- <tr align=center>
- <td width=110 >
- <img style="cursor: hand" border=0 src="[[IconFilePath]]" name="[[SampleFilePath]]" onClick="sel_image(this.name,'[[FileName]]',[[SampleWidth]],[[SampleHeight]])">
- </td>
- <td valign=top align=left width=200 bgcolor=FDFDFD>
- <font face=Tahoma size=2><b>
- <script>
- if ('[[Subject]]'=='')
- {document.writeln('<font color=silver>No subject</font>');}
- else {document.writeln('[[Subject]]');}
- </script>
- </b></font><br>
- <font face=Tahoma color=gray size=1>[[DateTime]]</font><br><br>
- <font face=Tahoma size=2>[[Comment]]</font>
- </td>
- </tr>
- </table>
- </td>
- [[/02]]</tr>
- [[/RecordInfo]]
-
- <tr><td colspan=2>
- <table bgcolor=EDEDED width=100% height=100%>
- <tr align=center><td width=100%>
- <font face='Tahoma' color=silver size=2><a><font color=silver></font></a>
- <script>
- DrawTabs();
- </script>
- </font>
- </td></tr>
- </table></td></tr>
-
- <tr><td colspan=2>
- <table width=100% height=100%>
- <tr align=center><td width=100%><font face='Tahoma' color=silver size=1>This gallery generated by <a href='http://www.enins.com/f-album'><font color=silver>F-Album</font></a></font>
- </td></tr>
- </table></td></tr>
- </table>
- </body>